package com.biz.primus.ms.commodity.dao.po;


import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * 关联商品Po
 * @author 江南
 * @usage
 * @reviewer
 * @since 2017/4/6
 */

@Entity
@Data
@Table(name = "pro_relevance_product")
public class RelevanceProduct extends BaseEntity implements Serializable {

    @OneToMany(cascade = CascadeType.ALL,mappedBy = "relevanceProduct")
    private List<Product> products;

}
